﻿using System;
using System.Collections.Generic;
using System.Text;
using FingerTip.Infrastructure.Configuration;

namespace FingerTip.Infrastructure.MongoDb
{
    public class MongoDbConfig:Singleton<MongoDbConfig>
    {
        private string _connectionString;

        public string ConnectionString
        {
            get
            {
                if (string.IsNullOrWhiteSpace(ConnectionString))
                {
                    _connectionString = AppSettings.Instance.GetConfig("MongoDb:ConnectionString");
                }
                return _connectionString;
            }
        }
    }
}
